﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsharpTrainer.Model.Entities;
using CsharpTrainer.Domain.Clients;
using Zeus.Thunder.Core;

namespace SharpTrainer.KissData
{
    class SpTest1 : ITestCase
    {
        public void Run()
        {
            Console.Write("Please Input the Title:");
            string title = Console.ReadLine();

            //PerformanceManager perf = new PerformanceManager("Test Kiss Procedure", new TimeFileLog());
            PerformanceManager perf = new PerformanceManager("Test Kiss Procedure", new TimeConsole());
            perf.Start();

            EmployeesClient emp_client = new EmployeesClient();
            IList<Employee> employeeList = emp_client.GetEmployeesByTitle(title);

            foreach (Employee emp in employeeList)
                Console.WriteLine(emp.ToString());

            perf.Stop();
            perf.PrintTime();
        }
    }
}
